﻿<div class="tabbable">
    <ul class="nav nav-tabs">
        <!-- ko foreach:tabs-->
        <li data-bind="attr:{'class':current() ? 'pull-left active' :'pull-left'}">
            <a href="#" data-bind="text:name,click:$parent.on_tabSelected"></a>
        </li>
        <!-- /ko -->
        <li data-bind="visible:currentIndex()==0" class="pull-right">
            <a href="#Coupon/CouponEdit" class="btn btn-sm btn-primary">添加</a>
        </li>
        <li data-bind="visible:currentIndex()==1" class="pull-right">
            <a data-bind="click:save" class="btn btn-sm btn-primary">保存</a>
        </li>
    </ul>
</div>

<div data-bind="with:config,visible:currentIndex()==1" name="config" class="" style="margin-top:20px;display:none;">
    <div class="col-sm-12 form-group">
        <label class="col-sm-2 control-label">注册赠券</label>
        <div class="col-sm-10">
            <div class="input-group">
                <input data-bind="value:registerCouponIds" class="form-control" placeholder="请选择优惠券" />
                <div class="input-group-addon">
                    <i class=" icon-chevron-down"></i>
                </div>
            </div>

        </div>
    </div>
    <div class="col-sm-12 form-group">
        <label class="col-sm-2 control-label">日期赠券</label>
        <div class="col-sm-2" style="padding-right:0;">
            <input placeholder="赠券日期" class="form-control" />
        </div>
        <div class="col-sm-8" style="padding-left:0;">
            <div class="input-group">
                <input data-bind="" class="form-control" />
                <div class="input-group-addon">
                    <i class=" icon-chevron-down"></i>
                </div>
            </div>
        </div>
    </div>
    <div class="col-sm-12">
        <hr />
    </div>
    <div class="col-sm-12 form-group">
        <label class="col-sm-12">冲值赠券</label>
    </div>
    <div class="col-sm-12 form-group">
        <label class="col-sm-2 control-label">设置一</label>
        <div class="col-sm-2" style="padding-right:0;">
            <input placeholder="赠券金额" class="form-control" />
        </div>
        <div class="col-sm-8" style="padding-left:0;">
            <input data-bind="" class="form-control" />
        </div>
    </div>
    <div class="col-sm-12 form-group">
        <label class="col-sm-2 control-label">设置二</label>
        <div class="col-sm-2" style="padding-right:0;">
            <input placeholder="赠券金额" class="form-control" />
        </div>
        <div class="col-sm-8" style="padding-left:0;">
            <input data-bind="" class="form-control" />
        </div>
    </div>
    <div class="col-sm-12 form-group">
        <label class="col-sm-2 control-label">设置三</label>
        <div class="col-sm-2" style="padding-right:0;">
            <input placeholder="赠券金额" class="form-control" />
        </div>
        <div class="col-sm-8" style="padding-left:0;">
            <input data-bind="" class="form-control" />
        </div>
    </div>
    <div class="col-sm-12 form-group">
        <label class="col-sm-2 control-label">设置四</label>
        <div class="col-sm-2" style="padding-right:0;">
            <input placeholder="赠券金额" class="form-control" />
        </div>
        <div class="col-sm-8" style="padding-left:0;">
            <input data-bind="" class="form-control" />
        </div>
    </div>

    <!--<div class="col-sm-6 form-group">
        <label class="col-sm-3 control-label">面值</label>
        <div class="col-sm-9">
            <input data-bind="" class="form-control"><span class="validationMessage" style="display: none;"></span>
        </div>
    </div>-->
</div>

